.class public Lcom/example/m6wmr/ShareActivity;
.super Landroid/app/Activity;
.source "ShareActivity.java"


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "SetJavaScriptEnabled",
        "HandlerLeak"
    }
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/example/m6wmr/ShareActivity$Waimairenjsobj;
    }
.end annotation


# static fields
.field private static final GO_SHOP:I = 0x63

.field static appid:Ljava/lang/String;

.field static goshop:Ljava/lang/String;

.field public static mTencent:Lcom/tencent/tauth/Tencent;

.field static shopid:Ljava/lang/String;

.field static shopname:Ljava/lang/String;

.field public static shopshow:Lcom/example/m6wmr/ShareActivity;

.field static shoptype:Ljava/lang/String;


# instance fields
.field private WebLink:Ljava/lang/String;

.field bitmap:Landroid/graphics/Bitmap;

.field public h:Landroid/os/Handler;

.field private id:Ljava/lang/String;

.field m:Lmyapp/MyApp;

.field private mWebView:Landroid/webkit/WebView;

.field private mcontext:Landroid/content/Context;

.field pd:Landroid/app/ProgressDialog;

.field private pingstr:Ljava/lang/String;

.field private popView:Landroid/view/View;

.field private popWin:Landroid/widget/PopupWindow;

.field qqShareListener:Lcom/tencent/tauth/IUiListener;

.field private shareType:I

.field shoplayout:Landroid/widget/LinearLayout;

.field private shopstr:Ljava/lang/String;

.field private zhuantiname:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 72
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 73
    iput-object v0, p0, Lcom/example/m6wmr/ShareActivity;->m:Lmyapp/MyApp;

    .line 76
    iput-object v0, p0, Lcom/example/m6wmr/ShareActivity;->h:Landroid/os/Handler;

    .line 78
    iput-object v0, p0, Lcom/example/m6wmr/ShareActivity;->shoplayout:Landroid/widget/LinearLayout;

    .line 79
    iput-object v0, p0, Lcom/example/m6wmr/ShareActivity;->pd:Landroid/app/ProgressDialog;

    .line 80
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/ShareActivity;->id:Ljava/lang/String;

    .line 81
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/ShareActivity;->zhuantiname:Ljava/lang/String;

    .line 82
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/ShareActivity;->shopstr:Ljava/lang/String;

    .line 83
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/ShareActivity;->pingstr:Ljava/lang/String;

    .line 84
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/ShareActivity;->WebLink:Ljava/lang/String;

    .line 98
    const/4 v0, 0x1

    iput v0, p0, Lcom/example/m6wmr/ShareActivity;->shareType:I

    .line 454
    new-instance v0, Lcom/example/m6wmr/ShareActivity$1;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/ShareActivity$1;-><init>(Lcom/example/m6wmr/ShareActivity;)V

    iput-object v0, p0, Lcom/example/m6wmr/ShareActivity;->qqShareListener:Lcom/tencent/tauth/IUiListener;

    .line 72
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/ShareActivity;)I
    .locals 1

    .prologue
    .line 98
    iget v0, p0, Lcom/example/m6wmr/ShareActivity;->shareType:I

    return v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/ShareActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 75
    iget-object v0, p0, Lcom/example/m6wmr/ShareActivity;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$2(Lcom/example/m6wmr/ShareActivity;)Landroid/webkit/WebView;
    .locals 1

    .prologue
    .line 77
    iget-object v0, p0, Lcom/example/m6wmr/ShareActivity;->mWebView:Landroid/webkit/WebView;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6wmr/ShareActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 82
    iget-object v0, p0, Lcom/example/m6wmr/ShareActivity;->shopstr:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$4(Lcom/example/m6wmr/ShareActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 83
    iget-object v0, p0, Lcom/example/m6wmr/ShareActivity;->pingstr:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6wmr/ShareActivity;)V
    .locals 0

    .prologue
    .line 336
    invoke-direct {p0}, Lcom/example/m6wmr/ShareActivity;->getPopwindow()V

    return-void
.end method

.method static synthetic access$6(Lcom/example/m6wmr/ShareActivity;)V
    .locals 0

    .prologue
    .line 384
    invoke-direct {p0}, Lcom/example/m6wmr/ShareActivity;->qqfx()V

    return-void
.end method

.method static synthetic access$7(Lcom/example/m6wmr/ShareActivity;)V
    .locals 0

    .prologue
    .line 398
    invoke-direct {p0}, Lcom/example/m6wmr/ShareActivity;->shareToQzone()V

    return-void
.end method

.method static synthetic access$8(Lcom/example/m6wmr/ShareActivity;)V
    .locals 0

    .prologue
    .line 408
    invoke-direct {p0}, Lcom/example/m6wmr/ShareActivity;->shareToweixin()V

    return-void
.end method

.method static synthetic access$9(Lcom/example/m6wmr/ShareActivity;)V
    .locals 0

    .prologue
    .line 431
    invoke-direct {p0}, Lcom/example/m6wmr/ShareActivity;->shareToweixinp()V

    return-void
.end method

.method private buildTransaction(Ljava/lang/String;)Ljava/lang/String;
    .locals 3
    .param p1, "type"    # Ljava/lang/String;

    .prologue
    .line 452
    if-nez p1, :cond_0

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    invoke-static {v0, v1}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method private getPopwindow()V
    .locals 10

    .prologue
    const/4 v9, 0x0

    const/4 v8, -0x1

    .line 339
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    .line 340
    .local v0, "factory":Landroid/view/LayoutInflater;
    const v5, 0x7f0300b8

    const/4 v6, 0x0

    invoke-virtual {v0, v5, v6}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v5

    iput-object v5, p0, Lcom/example/m6wmr/ShareActivity;->popView:Landroid/view/View;

    .line 341
    iget-object v5, p0, Lcom/example/m6wmr/ShareActivity;->popView:Landroid/view/View;

    invoke-virtual {v5, v8}, Landroid/view/View;->setBackgroundColor(I)V

    .line 342
    new-instance v5, Landroid/widget/PopupWindow;

    iget-object v6, p0, Lcom/example/m6wmr/ShareActivity;->popView:Landroid/view/View;

    const/4 v7, -0x2

    invoke-direct {v5, v6, v8, v7}, Landroid/widget/PopupWindow;-><init>(Landroid/view/View;II)V

    iput-object v5, p0, Lcom/example/m6wmr/ShareActivity;->popWin:Landroid/widget/PopupWindow;

    .line 343
    iget-object v5, p0, Lcom/example/m6wmr/ShareActivity;->popWin:Landroid/widget/PopupWindow;

    const/4 v6, 0x1

    invoke-virtual {v5, v6}, Landroid/widget/PopupWindow;->setFocusable(Z)V

    .line 345
    iget-object v5, p0, Lcom/example/m6wmr/ShareActivity;->popWin:Landroid/widget/PopupWindow;

    new-instance v6, Landroid/graphics/drawable/BitmapDrawable;

    invoke-direct {v6}, Landroid/graphics/drawable/BitmapDrawable;-><init>()V

    invoke-virtual {v5, v6}, Landroid/widget/PopupWindow;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 346
    iget-object v5, p0, Lcom/example/m6wmr/ShareActivity;->popWin:Landroid/widget/PopupWindow;

    iget-object v6, p0, Lcom/example/m6wmr/ShareActivity;->mWebView:Landroid/webkit/WebView;

    const/16 v7, 0x50

    invoke-virtual {v5, v6, v7, v9, v9}, Landroid/widget/PopupWindow;->showAtLocation(Landroid/view/View;III)V

    .line 348
    iget-object v5, p0, Lcom/example/m6wmr/ShareActivity;->popView:Landroid/view/View;

    const v6, 0x7f0c0368

    invoke-virtual {v5, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    .line 349
    .local v1, "ll_qq":Landroid/widget/LinearLayout;
    new-instance v5, Lcom/example/m6wmr/ShareActivity$4;

    invoke-direct {v5, p0}, Lcom/example/m6wmr/ShareActivity$4;-><init>(Lcom/example/m6wmr/ShareActivity;)V

    invoke-virtual {v1, v5}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 356
    iget-object v5, p0, Lcom/example/m6wmr/ShareActivity;->popView:Landroid/view/View;

    const v6, 0x7f0c0369

    invoke-virtual {v5, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/LinearLayout;

    .line 357
    .local v2, "ll_qqo":Landroid/widget/LinearLayout;
    new-instance v5, Lcom/example/m6wmr/ShareActivity$5;

    invoke-direct {v5, p0}, Lcom/example/m6wmr/ShareActivity$5;-><init>(Lcom/example/m6wmr/ShareActivity;)V

    invoke-virtual {v2, v5}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 365
    iget-object v5, p0, Lcom/example/m6wmr/ShareActivity;->popView:Landroid/view/View;

    const v6, 0x7f0c036a

    invoke-virtual {v5, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    .line 366
    .local v3, "llwx":Landroid/widget/LinearLayout;
    new-instance v5, Lcom/example/m6wmr/ShareActivity$6;

    invoke-direct {v5, p0}, Lcom/example/m6wmr/ShareActivity$6;-><init>(Lcom/example/m6wmr/ShareActivity;)V

    invoke-virtual {v3, v5}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 374
    iget-object v5, p0, Lcom/example/m6wmr/ShareActivity;->popView:Landroid/view/View;

    const v6, 0x7f0c036b

    invoke-virtual {v5, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/LinearLayout;

    .line 375
    .local v4, "llwxp":Landroid/widget/LinearLayout;
    new-instance v5, Lcom/example/m6wmr/ShareActivity$7;

    invoke-direct {v5, p0}, Lcom/example/m6wmr/ShareActivity$7;-><init>(Lcom/example/m6wmr/ShareActivity;)V

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 383
    return-void
.end method

.method private getappid()V
    .locals 1

    .prologue
    .line 479
    new-instance v0, Lcom/example/m6wmr/ShareActivity$8;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/ShareActivity$8;-><init>(Lcom/example/m6wmr/ShareActivity;)V

    .line 529
    invoke-virtual {v0}, Lcom/example/m6wmr/ShareActivity$8;->start()V

    .line 530
    return-void
.end method

.method private qqfx()V
    .locals 3

    .prologue
    .line 385
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 386
    .local v0, "params":Landroid/os/Bundle;
    const-string v1, "req_type"

    .line 387
    const/4 v2, 0x1

    .line 386
    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 388
    const-string v1, "title"

    sget-object v2, Lcom/example/m6wmr/ShareActivity;->shoptype:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 389
    const-string v1, "summary"

    .line 390
    sget-object v2, Lcom/example/m6wmr/ShareActivity;->shopname:Ljava/lang/String;

    .line 389
    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 391
    const-string v1, "targetUrl"

    .line 392
    sget-object v2, Lcom/example/m6wmr/ShareActivity;->shopid:Ljava/lang/String;

    .line 391
    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 393
    const-string v1, "imageUrl"

    .line 394
    sget-object v2, Lcom/example/m6wmr/ShareActivity;->goshop:Ljava/lang/String;

    .line 393
    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 395
    const-string v1, "appName"

    const-string v2, "\u5916\u5356\u4eba"

    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 396
    sget-object v1, Lcom/example/m6wmr/ShareActivity;->mTencent:Lcom/tencent/tauth/Tencent;

    iget-object v2, p0, Lcom/example/m6wmr/ShareActivity;->qqShareListener:Lcom/tencent/tauth/IUiListener;

    invoke-virtual {v1, p0, v0, v2}, Lcom/tencent/tauth/Tencent;->shareToQQ(Landroid/app/Activity;Landroid/os/Bundle;Lcom/tencent/tauth/IUiListener;)V

    .line 397
    return-void
.end method

.method private shareToQzone()V
    .locals 4

    .prologue
    .line 399
    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    .line 400
    .local v1, "params":Landroid/os/Bundle;
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 401
    .local v0, "imageUrls":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Ljava/lang/String;>;"
    sget-object v2, Lcom/example/m6wmr/ShareActivity;->goshop:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 402
    const-string v2, "title"

    sget-object v3, Lcom/example/m6wmr/ShareActivity;->shoptype:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 403
    const-string v2, "summary"

    sget-object v3, Lcom/example/m6wmr/ShareActivity;->shopname:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 404
    const-string v2, "targetUrl"

    sget-object v3, Lcom/example/m6wmr/ShareActivity;->shopid:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 405
    const-string v2, "imageUrl"

    invoke-virtual {v1, v2, v0}, Landroid/os/Bundle;->putStringArrayList(Ljava/lang/String;Ljava/util/ArrayList;)V

    .line 406
    sget-object v2, Lcom/example/m6wmr/ShareActivity;->mTencent:Lcom/tencent/tauth/Tencent;

    iget-object v3, p0, Lcom/example/m6wmr/ShareActivity;->qqShareListener:Lcom/tencent/tauth/IUiListener;

    invoke-virtual {v2, p0, v1, v3}, Lcom/tencent/tauth/Tencent;->shareToQzone(Landroid/app/Activity;Landroid/os/Bundle;Lcom/tencent/tauth/IUiListener;)V

    .line 407
    return-void
.end method

.method private shareToweixin()V
    .locals 7

    .prologue
    .line 410
    new-instance v4, Lcom/tencent/mm/sdk/modelmsg/WXWebpageObject;

    invoke-direct {v4}, Lcom/tencent/mm/sdk/modelmsg/WXWebpageObject;-><init>()V

    .line 411
    .local v4, "webpage":Lcom/tencent/mm/sdk/modelmsg/WXWebpageObject;
    sget-object v5, Lcom/example/m6wmr/ShareActivity;->shopid:Ljava/lang/String;

    iput-object v5, v4, Lcom/tencent/mm/sdk/modelmsg/WXWebpageObject;->webpageUrl:Ljava/lang/String;

    .line 412
    new-instance v1, Lcom/tencent/mm/sdk/modelmsg/WXMediaMessage;

    invoke-direct {v1, v4}, Lcom/tencent/mm/sdk/modelmsg/WXMediaMessage;-><init>(Lcom/tencent/mm/sdk/modelmsg/WXMediaMessage$IMediaObject;)V

    .line 413
    .local v1, "msg1":Lcom/tencent/mm/sdk/modelmsg/WXMediaMessage;
    sget-object v5, Lcom/example/m6wmr/ShareActivity;->shoptype:Ljava/lang/String;

    iput-object v5, v1, Lcom/tencent/mm/sdk/modelmsg/WXMediaMessage;->title:Ljava/lang/String;

    .line 414
    sget-object v5, Lcom/example/m6wmr/ShareActivity;->shopname:Ljava/lang/String;

    iput-object v5, v1, Lcom/tencent/mm/sdk/modelmsg/WXMediaMessage;->description:Ljava/lang/String;

    .line 416
    invoke-virtual {p0}, Lcom/example/m6wmr/ShareActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    const v6, 0x7f02011c

    invoke-static {v5, v6}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v3

    .line 418
    .local v3, "thumb":Landroid/graphics/Bitmap;
    const/4 v5, 0x1

    invoke-static {v3, v5}, Lmyapp/Util;->bmpToByteArray(Landroid/graphics/Bitmap;Z)[B

    move-result-object v5

    iput-object v5, v1, Lcom/tencent/mm/sdk/modelmsg/WXMediaMessage;->thumbData:[B

    .line 420
    new-instance v2, Lcom/tencent/mm/sdk/modelmsg/SendMessageToWX$Req;

    invoke-direct {v2}, Lcom/tencent/mm/sdk/modelmsg/SendMessageToWX$Req;-><init>()V

    .line 421
    .local v2, "req":Lcom/tencent/mm/sdk/modelmsg/SendMessageToWX$Req;
    const-string v5, "webpage"

    invoke-direct {p0, v5}, Lcom/example/m6wmr/ShareActivity;->buildTransaction(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    iput-object v5, v2, Lcom/tencent/mm/sdk/modelmsg/SendMessageToWX$Req;->transaction:Ljava/lang/String;

    .line 422
    iput-object v1, v2, Lcom/tencent/mm/sdk/modelmsg/SendMessageToWX$Req;->message:Lcom/tencent/mm/sdk/modelmsg/WXMediaMessage;

    .line 423
    const/4 v5, 0x0

    iput v5, v2, Lcom/tencent/mm/sdk/modelmsg/SendMessageToWX$Req;->scene:I

    .line 425
    sget-object v5, Lcom/example/m6wmr/ShareActivity;->appid:Ljava/lang/String;

    invoke-static {p0, v5}, Lcom/tencent/mm/sdk/openapi/WXAPIFactory;->createWXAPI(Landroid/content/Context;Ljava/lang/String;)Lcom/tencent/mm/sdk/openapi/IWXAPI;

    move-result-object v0

    .line 426
    .local v0, "api":Lcom/tencent/mm/sdk/openapi/IWXAPI;
    sget-object v5, Lcom/example/m6wmr/ShareActivity;->appid:Ljava/lang/String;

    invoke-interface {v0, v5}, Lcom/tencent/mm/sdk/openapi/IWXAPI;->registerApp(Ljava/lang/String;)Z

    .line 428
    invoke-interface {v0, v2}, Lcom/tencent/mm/sdk/openapi/IWXAPI;->sendReq(Lcom/tencent/mm/sdk/modelbase/BaseReq;)Z

    .line 429
    return-void
.end method

.method private shareToweixinp()V
    .locals 8

    .prologue
    const/4 v7, 0x1

    .line 432
    new-instance v4, Lcom/tencent/mm/sdk/modelmsg/WXWebpageObject;

    invoke-direct {v4}, Lcom/tencent/mm/sdk/modelmsg/WXWebpageObject;-><init>()V

    .line 433
    .local v4, "webpage":Lcom/tencent/mm/sdk/modelmsg/WXWebpageObject;
    sget-object v5, Lcom/example/m6wmr/ShareActivity;->shopid:Ljava/lang/String;

    iput-object v5, v4, Lcom/tencent/mm/sdk/modelmsg/WXWebpageObject;->webpageUrl:Ljava/lang/String;

    .line 434
    new-instance v1, Lcom/tencent/mm/sdk/modelmsg/WXMediaMessage;

    invoke-direct {v1, v4}, Lcom/tencent/mm/sdk/modelmsg/WXMediaMessage;-><init>(Lcom/tencent/mm/sdk/modelmsg/WXMediaMessage$IMediaObject;)V

    .line 435
    .local v1, "msg":Lcom/tencent/mm/sdk/modelmsg/WXMediaMessage;
    sget-object v5, Lcom/example/m6wmr/ShareActivity;->shoptype:Ljava/lang/String;

    iput-object v5, v1, Lcom/tencent/mm/sdk/modelmsg/WXMediaMessage;->title:Ljava/lang/String;

    .line 436
    sget-object v5, Lcom/example/m6wmr/ShareActivity;->shopname:Ljava/lang/String;

    iput-object v5, v1, Lcom/tencent/mm/sdk/modelmsg/WXMediaMessage;->description:Ljava/lang/String;

    .line 437
    invoke-virtual {p0}, Lcom/example/m6wmr/ShareActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    const v6, 0x7f02011c

    invoke-static {v5, v6}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v3

    .line 438
    .local v3, "thumb":Landroid/graphics/Bitmap;
    invoke-static {v3, v7}, Lmyapp/Util;->bmpToByteArray(Landroid/graphics/Bitmap;Z)[B

    move-result-object v5

    iput-object v5, v1, Lcom/tencent/mm/sdk/modelmsg/WXMediaMessage;->thumbData:[B

    .line 440
    new-instance v2, Lcom/tencent/mm/sdk/modelmsg/SendMessageToWX$Req;

    invoke-direct {v2}, Lcom/tencent/mm/sdk/modelmsg/SendMessageToWX$Req;-><init>()V

    .line 441
    .local v2, "req":Lcom/tencent/mm/sdk/modelmsg/SendMessageToWX$Req;
    const-string v5, "webpage"

    invoke-direct {p0, v5}, Lcom/example/m6wmr/ShareActivity;->buildTransaction(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    iput-object v5, v2, Lcom/tencent/mm/sdk/modelmsg/SendMessageToWX$Req;->transaction:Ljava/lang/String;

    .line 442
    iput-object v1, v2, Lcom/tencent/mm/sdk/modelmsg/SendMessageToWX$Req;->message:Lcom/tencent/mm/sdk/modelmsg/WXMediaMessage;

    .line 443
    iput v7, v2, Lcom/tencent/mm/sdk/modelmsg/SendMessageToWX$Req;->scene:I

    .line 445
    sget-object v5, Lcom/example/m6wmr/ShareActivity;->appid:Ljava/lang/String;

    invoke-static {p0, v5}, Lcom/tencent/mm/sdk/openapi/WXAPIFactory;->createWXAPI(Landroid/content/Context;Ljava/lang/String;)Lcom/tencent/mm/sdk/openapi/IWXAPI;

    move-result-object v0

    .line 446
    .local v0, "api":Lcom/tencent/mm/sdk/openapi/IWXAPI;
    sget-object v5, Lcom/example/m6wmr/ShareActivity;->appid:Ljava/lang/String;

    invoke-interface {v0, v5}, Lcom/tencent/mm/sdk/openapi/IWXAPI;->registerApp(Ljava/lang/String;)Z

    .line 448
    invoke-interface {v0, v2}, Lcom/tencent/mm/sdk/openapi/IWXAPI;->sendReq(Lcom/tencent/mm/sdk/modelbase/BaseReq;)Z

    .line 450
    return-void
.end method


# virtual methods
.method public loadUrl(Ljava/lang/String;)V
    .locals 3
    .param p1, "url"    # Ljava/lang/String;

    .prologue
    .line 309
    iget-object v0, p0, Lcom/example/m6wmr/ShareActivity;->mcontext:Landroid/content/Context;

    const-string v1, "\u52a0\u8f7d\u6570\u636e"

    const-string v2, "\u52a0\u8f7d\u6570\u636e\u4e2d\u3002\u3002\u3002"

    invoke-static {v0, v1, v2}, Lmyapp/Util;->showDialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 310
    iget-object v0, p0, Lcom/example/m6wmr/ShareActivity;->mWebView:Landroid/webkit/WebView;

    if-eqz v0, :cond_0

    .line 312
    iget-object v0, p0, Lcom/example/m6wmr/ShareActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v0, p1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    .line 313
    iget-object v0, p0, Lcom/example/m6wmr/ShareActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->reload()V

    .line 316
    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 9
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 101
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 102
    const v6, 0x7f0300c1

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/ShareActivity;->setContentView(I)V

    .line 103
    const-string v0, "1105427110"

    .line 104
    .local v0, "APP_ID":Ljava/lang/String;
    invoke-virtual {p0}, Lcom/example/m6wmr/ShareActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v6

    check-cast v6, Lmyapp/MyApp;

    iput-object v6, p0, Lcom/example/m6wmr/ShareActivity;->m:Lmyapp/MyApp;

    .line 105
    iget-object v6, p0, Lcom/example/m6wmr/ShareActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v6}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v1

    .line 106
    .local v1, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v1, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 107
    iput-object p0, p0, Lcom/example/m6wmr/ShareActivity;->mcontext:Landroid/content/Context;

    .line 108
    sput-object p0, Lcom/example/m6wmr/ShareActivity;->shopshow:Lcom/example/m6wmr/ShareActivity;

    .line 109
    const-string v6, "1105427110"

    iget-object v7, p0, Lcom/example/m6wmr/ShareActivity;->mcontext:Landroid/content/Context;

    invoke-static {v6, v7}, Lcom/tencent/tauth/Tencent;->createInstance(Ljava/lang/String;Landroid/content/Context;)Lcom/tencent/tauth/Tencent;

    move-result-object v6

    sput-object v6, Lcom/example/m6wmr/ShareActivity;->mTencent:Lcom/tencent/tauth/Tencent;

    .line 110
    invoke-direct {p0}, Lcom/example/m6wmr/ShareActivity;->getappid()V

    .line 111
    new-instance v6, Lcom/example/m6wmr/ShareActivity$2;

    invoke-direct {v6, p0}, Lcom/example/m6wmr/ShareActivity$2;-><init>(Lcom/example/m6wmr/ShareActivity;)V

    iput-object v6, p0, Lcom/example/m6wmr/ShareActivity;->h:Landroid/os/Handler;

    .line 182
    const-string v6, "userInfo"

    const/4 v7, 0x0

    .line 181
    invoke-virtual {p0, v6, v7}, Lcom/example/m6wmr/ShareActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v2

    .line 183
    .local v2, "preferences":Landroid/content/SharedPreferences;
    const-string v6, "uid"

    const-string v7, ""

    invoke-interface {v2, v6, v7}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 184
    .local v4, "uid":Ljava/lang/String;
    const-string v6, "pass"

    const-string v7, ""

    invoke-interface {v2, v6, v7}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 186
    .local v3, "pwd":Ljava/lang/String;
    new-instance v6, Ljava/lang/StringBuilder;

    iget-object v7, p0, Lcom/example/m6wmr/ShareActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v7}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v7, "/index.php?ctrl=app&action=memsharej&uid="

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, "&pwd="

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    iput-object v6, p0, Lcom/example/m6wmr/ShareActivity;->WebLink:Ljava/lang/String;

    .line 187
    const-string v6, "WebLink--------------------"

    iget-object v7, p0, Lcom/example/m6wmr/ShareActivity;->WebLink:Ljava/lang/String;

    invoke-static {v6, v7}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 188
    const v6, 0x7f0c001c

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/ShareActivity;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/webkit/WebView;

    iput-object v6, p0, Lcom/example/m6wmr/ShareActivity;->mWebView:Landroid/webkit/WebView;

    .line 189
    iget-object v6, p0, Lcom/example/m6wmr/ShareActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v6}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v5

    .line 190
    .local v5, "webSettings":Landroid/webkit/WebSettings;
    const/4 v6, 0x1

    invoke-virtual {v5, v6}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    .line 192
    iget-object v6, p0, Lcom/example/m6wmr/ShareActivity;->mWebView:Landroid/webkit/WebView;

    new-instance v7, Lcom/example/m6wmr/ShareActivity$Waimairenjsobj;

    const/4 v8, 0x0

    invoke-direct {v7, p0, v8}, Lcom/example/m6wmr/ShareActivity$Waimairenjsobj;-><init>(Lcom/example/m6wmr/ShareActivity;Lcom/example/m6wmr/ShareActivity$Waimairenjsobj;)V

    const-string v8, "waimai"

    invoke-virtual {v6, v7, v8}, Landroid/webkit/WebView;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    .line 193
    iget-object v6, p0, Lcom/example/m6wmr/ShareActivity;->mWebView:Landroid/webkit/WebView;

    if-eqz v6, :cond_0

    .line 195
    iget-object v6, p0, Lcom/example/m6wmr/ShareActivity;->mWebView:Landroid/webkit/WebView;

    new-instance v7, Lcom/example/m6wmr/ShareActivity$3;

    invoke-direct {v7, p0}, Lcom/example/m6wmr/ShareActivity$3;-><init>(Lcom/example/m6wmr/ShareActivity;)V

    invoke-virtual {v6, v7}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 207
    :cond_0
    iget-object v6, p0, Lcom/example/m6wmr/ShareActivity;->WebLink:Ljava/lang/String;

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/ShareActivity;->loadUrl(Ljava/lang/String;)V

    .line 208
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v1, 0x0

    .line 328
    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v0

    if-nez v0, :cond_0

    .line 329
    invoke-virtual {p0}, Lcom/example/m6wmr/ShareActivity;->finish()V

    .line 333
    :cond_0
    return v1
.end method

.method public onStart()V
    .locals 0

    .prologue
    .line 322
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 323
    return-void
.end method
